<?php
require_once "Context.php";
if(isset($_POST['Name']) && isset($_POST['Email']) && isset($_POST['Description']))
{
    $name = $_POST['Name'];
    $Email = $_POST['Email'];
    $Description = $_POST['Description'];


    $result = Context::DB()->query("INSERT INTO `Contacts`(`ContactName`, `Email`, `Description`) VALUES ('$name','$Email','$Description')");
}
else{
    echo 'Incorrect data';
}